User terminals, and methods and computer-readable recording mediums storing computer programs for transmitting and receiving messages

ABSTRACT

A non-transitory computer-readable recording medium storing computer-readable instructions that, when executed by a first user terminal, cause the first user terminal to perform a method including: receiving a first message including a first attached file, generating at least one encryption key for encrypting the first message by taking into account a type of the first attached file, encrypting the first attached file of the first message by using the encryption key, adding sender information of the first message to the first message, and transmitting the first message including the sender information to a message server, may be provided.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of Korean Patent Application No.10-2015-0149491, filed on Oct. 27, 2015, in the Korean IntellectualProperty Office, the disclosure of which is incorporated herein in itsentirety by reference.

BACKGROUND

1. Field

One or more example embodiments relate to user terminals, and methodsand/or computer-readable recording mediums storing computer programs fortransmitting and receiving messages, and more particularly, to userterminals, methods, and/or computer-readable recording mediums storingcomputer programs configured such that key information used forencrypting or decrypting messages is not shared with a message server.

2. Description of the Related Art

A messenger-based communication transmits and receives messages betweena plurality of terminals and a server. When a first user inputs a textthrough a message application installed on his or her terminal, the textis transmitted to a message application installed on a terminal of asecond user through a server of a corresponding messenger serviceprovider. Most message applications apply an encryption device between aterminal (e.g., smart phone) and a server. It is common that theencrypted message transmitted to the server is decrypted by the server.

According to the related art, messages may be decrypted by the server.Thus, in the event that the server is hacked, messages communicatedbetween users may be opened to the public or may be accessed by anunauthorized third party.

To address such problem, an end-to-end encryption technology, whichpermits select terminals of users to decrypt messages, has been applied.

However, in a case where the end-to-end encryption technology isapplied, the same message is encrypted differently according to arecipient or a sender, and a server needs to individually managemessages between users.

SUMMARY

One or more example embodiments include user terminals, methods, and/orcomputer-readable recording mediums storing computer programs, whichencrypt a first message by using an encryption key, transmit the firstmessage from a first user terminal to a second user terminal, anddecrypt a second message received from the second user terminal by usinga decryption key paired with the encryption key.

One or more example embodiments include user terminals, methods, and/orcomputer-readable recording mediums storing computer programs, whichperform authentication on a second user terminal that is anotherterminal held by a user, and perform control to share a message with thesecond user terminal when the authentication has been completed.

One or more example embodiments include user terminals, methods, and/orcomputer-readable recording mediums storing computer programs, in whichinformation encrypted or decrypted not to be decoded by a message serverthat controls transmission and reception of messages between one or moreuser terminals is not shared with the message server.

Additional aspects will be set forth in part in the description whichfollows and, in part, will be apparent from the description, or may belearned by practice of the presented example embodiments.

According to an example embodiment, there is provided a non-transitorycomputer-readable recording medium storing computer-readableinstructions that, when executed by a first user terminal, cause thefirst user terminal to perform a method comprising receiving a firstmessage including a first attached file, generating, based on a type ofthe first attached file, at least one encryption key for encrypting thefirst message, encrypting the first attached file using the at least oneencryption key, adding sender information to the first message, thesender information associated with the first message, and transmittingthe first message including the sender information to a message server.

In some example embodiments, the generating at least one encryption keymay include generating a hash value of the first attached file as theencryption key of the first attached file.

In some example embodiments, when the type of the first attached file isa video file, the generating at least one encryption key may includegenerating a hash value of the first attached file as the encryption keyof the first attached file.

In some example embodiments, the generating at least one encryption keymay include generating a plurality of encryption keys for a plurality ofsecond user terminals for transmitting the first message to theplurality of second user terminals.

In some example embodiments, the method may further include receiving asecond message and an index associated with a second attached file, thesecond message transmitted by a second user terminal via the messageserver, extracting the index, calling from the message server the secondattached file using the index, and decrypting the second attached fileusing a decryption key received from the second user terminal.

In some example embodiments, the method may further includes inputtingan authentication key, the authentication key transmitted from a seconduser terminal via the message server, to read the first message from thesecond user terminal.

In some example embodiments, the inputting an authentication key mayinclude transmitting the authentication key from the second userterminal to the message server, receiving a validation result withregard to the authentication key in response to the transmittedauthentication key and transmitting the first message and the secondmessage to the second user terminal according to the validation result.

In some example embodiments, the inputting the authentication key mayinclude encrypting the first and second messages by using theauthentication key and transmitting the encrypted first and secondmessages to the second user terminal.

According to an example embodiment, a user terminal includes acommunicator, a memory, and at least one processor, which includes aninput controller configured to receive a first message including a firstattached file, the first message including sender information, a keygenerator configured to generate an encryption key for encrypting thefirst message by taking into account a type of the first attached file,an encryptor configured to encrypt the first attached file of the firstmessage by using the encryption key, and a message transmitterconfigured to transmit the first message to a message server.

In some example embodiments, when a size of the first attached file isequal to or greater than a threshold value, the key generator may befurther configured to generate a hash value of the first attached fileas the encryption key of the first attached file.

In some example embodiments, when a type of the first attached file is avideo file, the key generator may be further configured to generate ahash value of the first attached file as the encryption key of the firstattached file.

In some example embodiments, when the first message is desired to betransmitted to a plurality of user terminals, the key generator may befurther configured to generate a plurality of encryption keys for therespective user terminals.

In some example embodiments, the at least one processor may furtherinclude a message receiver configured to receive a second message and anindex associated with a second attached file, the second messagetransmitted by a second user terminal via the message server, a datacaller configured to extract an index and call from the message serverthe second attached file using the index, and a decryptor configured todecrypt the second attached file by using a decryption key received fromthe second user terminal.

In some example embodiments, the at least one processor may furtherinclude an authentication manager configured to input an authenticationkey, the authentication key transmitted from a second user terminal viathe message server, to read the first message from the second userterminal.

In some example embodiments, the authentication manager may be furtherconfigured to transmit the authentication key from the second userterminal to the message server, receive a validation result with regardto the authentication key in response to the transmitted authenticationkey, and transmit the first message and the second message to the seconduser terminal according to the validation result.

In some example embodiments, the authentication manager may be furtherconfigured to encrypt the first and second messages by using theauthentication key and transmitting the encrypted first and secondmessages to the second user terminal.

Other aspects, features, advantages will become apparent from theaccompanying drawing, claims, and detailed descriptions of exampleembodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects will become apparent and more readilyappreciated from the following description of example embodiments, takenin conjunction with the accompanying drawings in which:

FIG. 1 is a schematic diagram of a system for transmitting and receivinga message, according to an example embodiment;

FIG. 2 is a block diagram of a message server according to an exampleembodiment;

FIG. 3 is a block diagram of a processor of a message server, accordingto an example embodiment;

FIG. 4 is a block diagram of a user terminal according to an exampleembodiment;

FIG. 5 is a block diagram of a processor of a user terminal, accordingto an example embodiment;

FIG. 6 is a block diagram of an authentication manager of a userterminal, according to an example embodiment;

FIGS. 7 and 8 are flowcharts of methods of transmitting and receiving amessage, according to an example embodiment;

FIGS. 9 and 10 are flowcharts of data transmission and reception betweenuser terminals and a message server;

FIGS. 11 to 14 are diagrams illustrating examples of user interfacesaccording to some example embodiments; and

FIGS. 15A and 15B are diagrams for describing encryption processes indetail according to some example embodiments.

DETAILED DESCRIPTION

One or more example embodiments will be described in detail withreference to the accompanying drawings. Example embodiments, however,may be embodied in various different forms, and should not be construedas being limited to only the illustrated embodiments. Rather, theillustrated embodiments are provided as examples so that this disclosurewill be thorough and complete, and will fully convey the concepts ofthis disclosure to those skilled in the art. Accordingly, knownprocesses, elements, and techniques, may not be described with respectto some example embodiments. Unless otherwise noted, like referencecharacters denote like elements throughout the attached drawings andwritten description, and thus descriptions will not be repeated.

Although the terms “first,” “second,” “third,” etc., may be used hereinto describe various elements, components, regions, layers, and/orsections, these elements, components, regions, layers, and/or sections,should not be limited by these terms. These terms are only used todistinguish one element, component, region, layer, or section, fromanother region, layer, or section. Thus, a first element, component,region, layer, or section, discussed below may be termed a secondelement, component, region, layer, or section, without departing fromthe scope of this disclosure.

Spatially relative terms, such as “beneath,” “below,” “lower,” “under,”“above,” “upper,” and the like, may be used herein for ease ofdescription to describe one element or feature's relationship to anotherelement(s) or feature(s) as illustrated in the figures. It will beunderstood that the spatially relative terms are intended to encompassdifferent orientations of the device in use or operation in addition tothe orientation depicted in the figures. For example, if the device inthe figures is turned over, elements described as “below,” “beneath,” or“under,” other elements or features would then be oriented “above” theother elements or features. Thus, the example terms “below” and “under”may encompass both an orientation of above and below. The device may beotherwise oriented (rotated 90 degrees or at other orientations) and thespatially relative descriptors used herein interpreted accordingly. Inaddition, when an element is referred to as being “between” twoelements, the element may be the only element between the two elements,or one or more other intervening elements may be present.

As used herein, the singular forms “a,” “an,” and “the,” are intended toinclude the plural forms as well, unless the context clearly indicatesotherwise. It will be further understood that the terms “comprises”and/or “comprising,” when used in this specification, specify thepresence of stated features, integers, steps, operations, elements,and/or components, but do not preclude the presence or addition of oneor more other features, integers, steps, operations, elements,components, and/or groups, thereof. As used herein, the term “and/or”includes any and all combinations of one or more of the associatedlisted items. Expressions such as “at least one of,” when preceding alist of elements, modify the entire list of elements and do not modifythe individual elements of the list. Also, the term “exemplary” isintended to refer to an example or illustration.

When an element is referred to as being “on,” “connected to,” “coupledto,” or “adjacent to,” another element, the element may be directly on,connected to, coupled to, or adjacent to, the other element, or one ormore other intervening elements may be present. In contrast, when anelement is referred to as being “directly on,” “directly connected to,”“directly coupled to,” or “immediately adjacent to,” another elementthere are no intervening elements present.

Unless otherwise defined, all terms (including technical and scientificterms) used herein have the same meaning as commonly understood by oneof ordinary skill in the art to which example embodiments belong, Terms,such as those defined in commonly used dictionaries, should beinterpreted as having a meaning that is consistent with their meaning inthe context of the relevant art and/or this disclosure, and should notbe interpreted in an idealized or overly formal sense unless expresslyso defined herein.

Example embodiments may be described with reference to acts and symbolicrepresentations of operations (e.g., in the form of flow charts, flowdiagrams, data flow diagrams, structure diagrams, block diagrams, etc.)that may be implemented in conjunction with units and/or devicesdiscussed in more detail below. Although discussed in a particularlymanner, a function or operation specified in a specific block may beperformed differently from the flow specified in a flowchart, flowdiagram, etc. For example, functions or operations illustrated as beingperformed serially in two consecutive blocks may actually be performedsimultaneously, or in some cases be performed in reverse order.

Units and/or devices according to one or more example embodiments may beimplemented using hardware and/or a combination hardware and software.For example, hardware devices may be implemented using processingcircuitry such as, but not limited to, a processor, Central ProcessingUnit (CPU), a controller, an arithmetic logic unit (ALU), a digitalsignal processor, a microcomputer, a field programmable gate array(FPGA), a System-on-Chip (SoC), a programmable logic unit, amicroprocessor, or any other device capable of responding to andexecuting instructions in a defined manner.

Software may include a computer program, program code, instructions, orsome combination thereof, for independently or collectively instructingor configuring a hardware device to operate as desired. The computerprogram and/or program code may include program or computer-readableinstructions, software components, software modules, data files, datastructures, and/or the like, capable of being implemented by one or morehardware devices, such as one or more of the hardware devices mentionedabove. Examples of program code include both machine code produced by acompiler and higher level program code that is executed using aninterpreter.

For example, when a hardware device is a computer processing device(e.g., a processor, Central Processing Unit (CPU), a controller, anarithmetic logic unit (ALU), a digital signal processor, amicrocomputer, a microprocessor, etc.), the computer processing devicemay be configured to carry out program code by performing arithmetical,logical, and input/output operations, according to the program code.Once the program code is loaded into a computer processing device, thecomputer processing device may be programmed to perform the programcode, thereby transforming the computer processing device into a specialpurpose computer processing device. In a more specific example, when theprogram code is loaded into a processor, the processor becomesprogrammed to perform the program code and operations correspondingthereto, thereby transforming the processor into a special purposeprocessor.

Software and/or data may be embodied permanently or temporarily in anytype of machine, component, physical or virtual equipment, or computerstorage medium or device, capable of providing instructions or data to,or being interpreted by, a hardware device. The software also may bedistributed over network coupled computer systems so that the softwareis stored and executed in a distributed fashion. In particular, forexample, software and data may be stored by one or more computerreadable recording mediums, including the tangible or non-transitorycomputer-readable storage media discussed herein.

According to one or more example embodiments, computer processingdevices may be described as including various functional units thatperform various operations and/or functions to increase the clarity ofthe description. However, computer processing devices are not intendedto be limited to these functional units. For example, in one or moreexample embodiments, the various operations and/or functions of thefunctional units may be performed by other ones of the functional units.Further, the computer processing devices may perform the operationsand/or functions of the various functional units without sub-dividingthe operations and/or functions of the computer processing units intothese various functional units.

Units and/or devices according to one or more example embodiments mayalso include one or more storage devices. The one or more storagedevices may be tangible or non-transitory computer-readable storagemedia, such as random access memory (RAM), read only memory (ROM), apermanent mass storage device (such as a disk drive), solid state (e.g.,NAND flash) device, and/or any other like data storage mechanism capableof storing and recording data. The one or more storage devices may beconfigured to store computer programs, program code, instructions, orsome combination thereof, for one or more operating systems and/or forimplementing the example embodiments described herein. The computerprograms, program code, instructions, or some combination thereof, mayalso be loaded from a separate computer readable storage medium into theone or more storage devices and/or one or more computer processingdevices using a drive mechanism. Such separate computer readable storagemedium may include a Universal Serial Bus (USB) flash drive, a memorystick, a Blu-ray/DVD/CD-ROM drive, a memory card, and/or other likecomputer readable storage media. The computer programs, program code,instructions, or some combination thereof, may be loaded into the one ormore storage devices and/or the one or more computer processing devicesfrom a remote data storage device via a network interface, rather thanvia a local computer readable storage medium. Additionally, the computerprograms, program code, instructions, or some combination thereof, maybe loaded into the one or more storage devices and/or the one or moreprocessors from a remote computing system that is configured to transferand/or distribute the computer programs, program code, instructions, orsome combination thereof, over a network. The remote computing systemmay transfer and/or distribute the computer programs, program code,instructions, or some combination thereof, via a wired interface, an airinterface, and/or any other like medium.

The one or more hardware devices, the one or more storage devices,and/or the computer programs, program code, instructions, or somecombination thereof, may be specially designed and constructed for thepurposes of the example embodiments, or they may be known devices thatare altered and/or modified for the purposes of example embodiments.

A hardware device, such as a computer processing device, may run anoperating system (OS) and one or more software applications that run onthe OS. The computer processing device also may access, store,manipulate, process, and create data in response to execution of thesoftware. For simplicity, one or more example embodiments may beexemplified as one computer processing device; however, one skilled inthe art will appreciate that a hardware device may include multipleprocessing elements and multiple types of processing elements. Forexample, a hardware device may include multiple processors or aprocessor and a controller. In addition, other processing configurationsare possible, such as parallel processors.

Although described with reference to specific examples and drawings,modifications, additions and substitutions of example embodiments may bevariously made according to the description by those of ordinary skillin the art. For example, the described techniques may be performed in anorder different with that of the methods described, and/or componentssuch as the described system, architecture, devices, circuit, and thelike, may be connected or combined to be different from theabove-described methods, or results may be appropriately achieved byother components or equivalents.

In the following example embodiments, a “circuit” may include, forexample, a hardwired circuit, a programmable circuit, a state machinecircuit, and/or a firmware alone or in combination, which storeinstructions executed by a programmable circuit. An application may beimplemented by codes or instructions that are executable on aprogrammable circuit, like a host processor or other programmablecircuits. As used in the example embodiments, a module may beimplemented by a circuit, and a circuit may be implemented by anintegrated circuit such as an integrated circuit chip.

Also, the terms “unit”, “-er/-or”, and “module” used herein represent adevice for processing at least one function or operation, which may beimplemented by hardware, software, or a combination of hardware andsoftware.

FIG. 1 is a diagram of a system 10 for transmitting and receiving amessage, according to an example embodiment.

Referring to FIG. 1, the system 10 according to the example embodimentmay include a message server 100, user terminals 200 and 300, and acommunication network 400.

The message server 100 may transmit and receive messages between aplurality of user terminals 200 and 300. For example, the message server100 may transmit or receive messages between the user terminals 200 and300 through one or more procedures (e.g., a member registrationprocedure and/or a login procedure). Further, the message server 100 mayprovide a chat room, which enables chats between the plurality of userterminals 200 and 300. The message server 100 may control the chat roomsuch that a chat input by a user or a chat received by a user in thechat room are shared with the other users in the chat room.

The message server 100 may transmit a chat-room invitation message tothe user terminals 200 and/or 300 that have not completed, for example,the member registration procedure, the login procedure, or the like.

The message server 100 may encrypt or decrypt messages, chats, or talksbetween the user terminals 200 and 300. For example, the message server100 may receive and transmit messages or process chats in the chat roomby using the end-to-end encryption technology. Further, the messageserver 100 may transfer, for example, the messages encrypted by theend-to-end encryption technology to user terminals of senders as such,and may not store and/or manage information associated with decryptionand/or decoding of the encrypted messages.

Further, the message server 100 may control transmissions such that amessage to be transmitted to a first user terminal 201 is transmitted toa second user terminal 202 interacting with the first user terminal 201.The message server 100 may perform an authentication process so as toconfirm identity between the first user terminal 201 and the second userterminal 202. Further, the message server 100 may control transmissionssuch that an encryption key used for transmitting and receiving amessage by the first user terminal 201 is transmitted to the second userterminal 202, which interacts with the first user terminal 201. Theencryption key may be transmitted and received in an encrypted stateusing an authentication key used for authenticating the first userterminal 201 and the second user terminal 202.

Also, the message server 100 may distribute a message transmission andreception application to the user terminals 200 and 300.

The users may access the message server 100 through the user terminals200 and 300. The user terminals 200 and 300 may install the messagetransmission and reception application (e.g., computer program) thereonand may transmit and receive a message to and from the user terminals200 and 300 by using the message transmission and reception application.

Further, the user terminals 200 and 300 may encrypt a message such thatthe message is not open to the public and transmit the encryptedmessage. The user terminals 200 and 300 may not share encryption-relatedinformation with the message server 100.

The user terminals 200 and 300 may mean communication terminals capableof using web services under wired and/or wireless communicationenvironments. The user terminals 200 and 300 may be personal computers201 and 301 of users, or may be mobile terminals 202 and 302 of users.The mobile terminals 202 and 302 are illustrated in FIG. 1 as smartphones, but are not limited thereto. As described above, the mobileterminals 202 and 302 may be any terminals on which applications capableof web browsing are installed. The user terminals 201, 202, 301, and 302can be named, to distinguish from each other, as a first user terminal,a second user terminal, a third user terminal, and a fourth userterminal, respectively. In the following, the user terminals 200 and 300including the first to fourth user terminals will be described as anexample. In this example, the first and second user terminals 201, 202are held by one user and the third and fourth user terminals 301, 302are held by another user.

Examples of the user terminal 200 may include computers (e.g., a desktopcomputer, a laptop computer, a tablet computer, etc.), media computingplatforms (e.g., a cable, a satellite set-top box, a digital videorecorder, etc.), handheld computing devices (e.g., a personal digitalassistant (PDA), an email client, etc.), any type of mobile phones, orany type of computing or communication platforms, but are not limitedthereto.

The communication network 400 may connect the plurality of userterminals 200 and 300 to the message server 100. That is, for example,the communication network 400 may mean a communication network thatprovides a connection path so that the user terminals 200 and 300transmit and receive data to and from the message server 100. Examplesof the communication network 400 may include wired networks (e.g., localarea networks (LANs), metropolitan area networks (MANS), or integratedservice digital networks (ISDNs)) and wireless networks (e.g., wirelessLANs, code division multiple access (CDMA), Bluetooth, or satellitecommunication), but are not limited thereto.

FIG. 2 is a block diagram of a message server 100 according to anexample embodiment.

Referring to FIG. 2, the message server 100 according to an exampleembodiment may include a communicator 110, a processor 120, and adatabase 130.

The communicator 110 may include one or more elements that enablecommunication between the message server 100 and one or more userterminals 200 and 300.

The communicator 110 may be a device including hardware and softwaredesired for transmitting and receiving signals (e.g., a control signaland/or a data signal) through wired/wireless connections with othernetwork devices.

The processor 120 may control an overall operation of the message server100. For example, the processor 120 may control the communicator 110,the database 130, and the like by executing programs stored in thedatabase 130.

The processor 120 may include any type of devices capable of processingdata. The “processor” may mean a data processor embedded in hardware,which includes a circuit physically structured for performing functionsrepresented by codes or commands included in a program. As discussedabove, examples of the data processor embedded in the hardware mayinclude a microprocessor, a central processing unit (CPU), a processorcore, a multiprocessor, an application-specific integrated circuit(ASIC), and a field programmable gate array (FPGA), but are not limitedthereto.

The database 130 may store programs for the processing and control ofthe processor 120, and input/output data (e.g., a plurality of menus, aplurality of first layer sub-menus corresponding to each of theplurality of menus, and/or a plurality of second layer sub-menuscorresponding to each of the plurality of first layer sub-menus).

The database 130 may include at least one of a flash memory, a harddisk, a multimedia card micro-type memory, a card-type memory (e.g., SDor XD memory), random access memory (RAM), static random access memory(SRAM), read-only memory (ROM), electrically erasable programmableread-only memory (EEPROM), programmable read-only memory (PROM), amagnetic memory, a magnetic disk, or an optical disk. The message server100 may operate a web storage or a cloud server based on a storagefunction of the database 130 on the Internet.

The programs, which are stored in the database 130, may be classifiedinto a plurality of modules, for example, a user interface (UI) module,a touch screen module, and/or a notification module, according tofunctions thereof.

The message server 100 may transmit a message (e.g., a short message, aninstant message, and/or an email) to the user terminals 200 and 300. Thetype of the message transmitted and received by the message server 100is various and is not limited to one type.

FIG. 3 is a block diagram of an example embodiment of the processor 120of the message server 100.

Referring to FIG. 3, the processor 120 of the message server 100 mayinclude a message receiver 121, a message processor 122, and an indexgenerator 123.

The message receiver 121 may receive a message from the user terminals200 and 300. The message may include, for example, a title, contents,sender information, recipient information, and/or an attached file ofthe message. The sender information and the recipient information of themessage may include ID information, an email address, a phone number, orthe like of a user. The attached file may include an image, a video, avoice file, link information, or the like. The message server 100 maytransmit and receive messages between the user terminals 200 and 300 ofthe users who have been registered as a member through a memberregistration procedure.

The message processor 122 may transmit one or more messages receivedfrom one of the user terminal 200 and 300 to the other of the userterminal 200 and 300 of the message sender. When the message includes anattached file, the message processor 122 may transmit an index (e.g.,only an index) for the attached file to the user terminal 200 or 300,instead of transmitting the attached file. For example, when oneattached file is transmitted by or shared with many users, the messageprocessor 122 may perform processing so that the attached file istransmitted or shared through one index, instead of storing and managingas many copies and indices of the attached file as the number oftransmission or sharing of the attached file. For example, in the caseof a video popular to people, an event to exchange the same videobetween lots of users may occur. In this case, if the message server 100generates the video or the index corresponding to the video in eachevent (message transmission and reception) created by the users,resources are wasted. To mitigate such waste, the message processor 122may be configured to determine whether there is a history indicatingthat the attached file of the received message has been transmitted anddetermine whether to newly generate metadata for the attached file.

The message processor 122 may transmit the message to another server,which is capable of receiving the message, according to the recipientinformation of the message, and/or may directly transmit the message tothe user terminals 200 and 300.

When the message includes the attached file, the index generator 123 maygenerate an index capable of identifying the attached file, and generatea table in which the index corresponds to the attached file. The indexgenerator 123 may generate an index corresponding to the attached fileor the message.

FIG. 4 is a block diagram of the user terminal 200 according to anexample embodiment.

Referring to FIG. 4, the user terminal 200 according to the exampleembodiment may include a communicator 210, a processor 250, and a memory260, and may further include an output device 230 and a user inputdevice 240.

The communicator 210 may include one or more elements that enablecommunication between the user terminals 200 and 300 or communicationbetween the user terminals 200 and the message server 100. For example,the communicator 210 may include a short-range wireless communicator 211and a mobile communicator 212.

Examples of the short-range wireless communicator 211 may include aBluetooth communicator, a Bluetooth low energy (BLE) communicator, anear field communicator, a wireless LAN (WLAN) (Wi-Fi) communicator, aZigBee communicator, an infrared data association (IrDA) communicator, aWi-Fi direct (WFD) communicator, and/or an Ant+ communicator, but arenot limited thereto.

The mobile communicator 212 may transmit and receive a radio signal toand from at least one of a base station, an external terminal, or aserver over a mobile communication network. The radio signal may includea voice call signal, a video call signal, or various types of dataaccording to the transmission and reception of text/multimedia messages.

The communicator 210 may receive a message from the message server 100or other user terminals 200 and 300.

The output device 230 may include a display device 231, an audio outputdevice 232, a vibration motor 233, and the like.

The display device 231 may output information processed by the userterminal 200. For example, the display device 231 may output a userinterface provided when a message transmission and reception applicationis executed. The display device 231 may display a user interfaceassociated with the message generation or message reception according tothe installed message transmission and reception application. Thedisplay device 231 may display different user interfaces according toversions of the installed message transmission and receptionapplication. When a received message is an encrypted message, thedisplay device 231 may display a screen requesting, for example, a userauthentication. The display device 231 may provide a user interfaceconfigured to change according to a user input.

When the display device 231 includes a touch screen having a layeredstructure and a touch pad, the display device 231 may be used as aninput device as well as an output device. The display device 231 mayinclude at least one of a liquid crystal display, a thin filmtransistor-liquid crystal display, an organic light-emitting diodedisplay, a flexible display, a three-dimensional (3D) display, or anelectrophoretic display. According to some example embodiments, themessage server 100 may include two or more display devices 231. In thiscase, the two or more display devices 231 may face each other by using ahinge.

The audio output device 232 may output audio data received from thecommunicator 210 or stored in the memory 260. Further, the audio outputdevice 232 may output an audio signal associated with the functionsperformed by the user terminal 200 (e.g., a background sound output whenthe message application is executed and/or an effect sound generatedwhenever the message application performs an operation). The audiooutput device 232 may include, for example, a speaker or a buzzer.

The vibration motor 233 may output a vibration signal. For example, thevibration motor 233 may output a vibration signal corresponding to theoutput of the audio data or the image data (e.g., an effect vibrationsignal generated whenever a game application performs an operation orwhenever an image changes as a result of the operation performed by thegame application). Further, the vibration motor 233 may output avibration signal when a touch is input to the touch screen.

The processor 250 may control overall operations of the user terminal200. For example, the processor 250 may control the communicator 210,the output device 230, the user input device 240, and/or the memory 260by executing programs stored in the memory 260.

The processor 250 may determine an operation corresponding to a userinput and/or state information of the user terminal 200 based onmetadata associated with a message transmission and receptionapplication stored (e.g., pre-stored) in the memory 260.

The user input device 240 may be a device that allows the user to inputdata for controlling the user terminal 200. Examples of the user inputdevice 240 may include a key pad, a dome switch, a touch pad (e.g., acapacitive-type touch screen, a resistive-type touch screen, an infraredbeam-type touch screen, a surface acoustic wave-type touch screen, anintegral strain gauge-type touch screen, or a piezo effect-type touchscreen), a jog wheel, or a jog switch, but are not limited thereto.

The memory 260 may store programs for processing and control of theprocessor 250, and input/output data (e.g., a plurality of menus, aplurality of first layer sub-menus corresponding to each of theplurality of menus, and/or a plurality of second layer sub-menuscorresponding to each of the plurality of first layer sub-menus).

The memory 260 may previously store the metadata associated with themessage transmission and reception application.

The memory 260 may include at least one of a flash memory, a hard disk,a multimedia card micro-type memory, a card-type memory (e.g., SD or XDmemory), RAM, SRAM, ROM, EEPROM, PROM, a magnetic memory, a magneticdisk, or an optical disk. Further, the user terminal 200 may operate aweb storage or a cloud server based on a storage function of the memory130 on the Internet.

FIG. 5 is a block diagram of an example structure of the processor 250of the user terminal 200 or 300.

Referring to FIG. 5, the processor 250 of the user terminal 200 or 300may include an input controller 251, a message receiver 252, a messagetransmitter 253, a data caller 254, an encryptor 255, a decryptor 256, akey generator 257, and an authentication manager 258. First, thestructure of the user terminal 200 will be described with reference tosome example embodiments related to message transmission.

The input controller 251 may perform control an input operation of afirst message. The input controller 251 may perform control so that thefirst message is generated according to an input signal input by theuser input device 240. The input controller 251 may generate the firstmessage including, for example, a title, contents, sender information,recipient information, and/or an attached file of the first message inresponse to the input signal input by a user.

The message transmitter 253 may transmit the first message to the userterminal 300 (e.g., a recipient of the first message). The messagetransmitter 253 may change a format of the first message according to aprotocol associated with the first message. For example, when the firstmessage is transmitted and received through a communication network,such as a transmission control protocol/internet protocol (TCP/IP) ornear-field communication (NFC), the message transmitter 253 may change astructure of the first message in compliance with a relevantcommunication standard. Further, the message transmitter 253 may encryptparameters of the first message, for example, according to settings setby the user. That is, for example, the message transmitter 253 mayencrypt and transmit the first message or transmit the first messagewithout encrypting, according to security-related settings set by theuser. In some example embodiments, the message transmitter may addsender information of the first message to the first message andtransmit the resultant first message (which includes the senderinformation) to the user terminal 300.

The key generator 257 may generate an encryption key for encrypting thefirst message. The key generator 257 may generate the encryption key(private key) for encrypting the first message and a decryption key(public key) corresponding to the encryption key. A relationship betweenthe encryption key and the decryption key may be symmetric orasymmetric.

The key generator 257 may generate a key for encrypting contents of thefirst message and a key for encrypting an attached file of the firstmessage. First, as for an operation of generating the encryption key ofthe attached file, the key generator 257 may generate the encryption keyof the attached file of the first message by taking into account, forexample, a size of the attached file of the first message. For example,when the size of the attached file of the first message is smaller thana threshold size, the key generator 257 may generate a random value asthe encryption key of the attached file, regardless of a type of theattached file.

When the size of the attached file of the first message is larger thanthe threshold size, the key generator 257 may generate a hash value ofthe attached file as the encryption key of the attached file. When therandom value is generated as the encryption key of the attached file,the message server 100, which controls transmission and reception ofmessages between the user terminals 200 and 300, encrypts attached fileshaving the same contents into files having different contents, and thus,many resources are utilized so as to manage the attached files. On theother hand, when the hash value is generated as the encryption key ofthe attached file, the message server 100 according to the exampleembodiment, which controls transmission and reception of messagesbetween the user terminals 200 and 300, manages only one original file,regardless of how many user terminals the attached file is transmittedto or shared between.

The key generator 257 may generate the encryption key of the attachedfile of the first message by taking into account, for example, a type ofthe attached file of the first message. For example, when the attachedfile of the first message is a video file, the key generator 257 maygenerate the hash value of the attached file as the encryption key ofthe attached file. When the attached file of the message is a voice fileor an image file, the key generator 257 may generate the random value asthe encryption key of the attached file regardless of the attached file.

In some example embodiments, the key generator 257 may generate theencryption key of the attached file of the first message by taking intoaccount the number of recipients of the message or the number of timesthe first message is shared. For example, in a case where an inputmessage is desired to be transmitted to many users and the number ofrecipients of the first message is equal to or greater than a thresholdvalue, the key generator 257 may generate the hash value of the attachedfile as the encryption key of the attached file with respect to therecipients of the first message, instead of generating keys forencrypting the attached file according to recipient information of thefirst message. In a case where an input message is desired to be sharedwith many other users, and the number of times the message is shared isequal to or greater than the threshold value, the key generator 257 maygenerate the hash value of the attached file as the encryption key ofthe attached file, regardless of the sender or recipient of the message.Next, as for an operation of generating the encryption key forencrypting contents of the message, the key generator 257 may generatethe encryption key for encrypting the contents of the message in arandom manner. In this case, the encryption key may be generated in arandom manner by taking into account, for example, recipientinformation, sender information, a sending time, and/or a sending date.

In another example embodiment, in the case of the first message to betransmitted to the user terminals 200 and 300 of a plurality ofrecipients, the key generator 257 may generate different encryption keysfor the respective recipients. In the case that the first message is tobe transmitted to the third user terminal 301 and the fourth userterminal 302, the key generator 257 may generate a first encryption keyused to transmit the first message to the third user terminal 301 and asecond encryption key used to transmit the first message to the fourthuser terminal 302.

As for the hash value, the hash value of the attached file may be avalue obtained by performing calculations on data of the attached filethrough a hash function or a hash algorithm, and may be a unique valuefor the attached file. Because the hash value is the unique value forthe attached file, the fact that hash values of two different files areequal to each other may mean that the two files are substantially thesame file. Examples of the hash function may include CRC32, md5, SHA-1,RIPEMD-128, and Tiger.

As for an encryption method, the user terminal 200 or 300 according tothe present example embodiment may use an encryption method using anasymmetric key so as to prevent decryption of a message by a third partyother than a sender and a recipient when the first message istransmitted and received between the sender and the recipient. That is,for example, the user terminal 200 or 300 according to the presentexample embodiment may generate a private key for encrypting the firstmessage or a public key for decrypting the first message by the userterminal 200, which transmits the first message; or by the second userterminal 300, which receives the first message. A message encrypted byusing a first private key may be decrypted by using a first public keycorresponding to the first private key, and a message encrypted by usingthe first public key may be decrypted by using the first private key.That is; for example, the private key and the public key correspondingto the private key may have a correspondence relationship with respectto each other, and may be used to perform decryption or encryption. Insymmetric cryptography; the same encryption key (private key) may beused for encryption and decryption. On the other hand, in asymmetriccryptography, a private key for encryption and a public key fordecryption are in the relationship of a key and a lock with respect toeach other, and it is relatively difficult to decrypt the public keyfrom the private key. Examples of the symmetric cryptography may includeDES, double DES, triple DES, AES, IDEA, SEED, Blowfish, and ARIA.Examples of the asymmetric cryptography may include RSA, DSA, ECC,EIGamal, and Rabin. The user terminal 200 or 300 according to thepresent example embodiment may encrypt the first message by using thesymmetric cryptography.

The encryptor 255 may encrypt the contents and the attached file of thefirst message by using the encryption keys generated by the keygenerator 257. The encryptor 255 may encrypt the contents and theattached file of the first message by using one or more encryption keys.The encryptor 255 may encrypt the first message desired to betransmitted to a plurality of recipients by using encryption keysgenerated for the respective recipients.

The encryptor 255 may select an encryption method of the attached fileby taking into account a size and/or a type of the attached file. When asize of the attached file is equal to or larger than a threshold sizeand/or a type of the attached file is a video, the encryptor 255 maygenerate a hash value of the attached file as an encryption key, andwhen not, the encryptor 255 may generate a random encryption key. Theencryptor 255 may transmit a hash value or an encryption key to the userterminal 300 of the recipient, and at this time, the encryptor 255 maytransmit a key generated by encrypting the hash value or the encryptionkey to another encryption key. At this time, the other encryption keymay be pre-shared with the recipient.

The user terminal 200 or 300 according to the present example embodimentmay encrypt the contents of the first message by using an encryption keygenerated in a random manner and transmit the first message to themessage server 100. For example, the user terminal 200 or 300 mayencrypt the contents of the first message by using an encryption keygenerated by taking into account the type or size of the attached fileof the first message and transmit the message such that the contents ofthe message do not become public.

Next, the structure of the user terminal 200 or 300 will be described byfocusing on some example embodiments related to message reception.

The message receiver 252 may receive a second message or an indexcorresponding to the second message, which is transmitted by the userterminal 300 via the message server 100. The message receiver 252 mayreceive a decryption key for decryption of the second message, alongwith the second message or the index corresponding to the secondmessage. The user terminal 200 according to the present exampleembodiment may use the decryption key to transmit a response message forthe second message. The index may be information generated and managedby the message server 100. Because transmission and reception of anindex consume less resource than transmission and reception of amessage, the index corresponding to the message may be transmittedwithout transmission and reception of the message itself.

When a message is transmitted and received without being encrypted,calling of data may not be needed. In the case of transmitting andreceiving indexes (instead of the unencrypted message) respectivelycorresponding to the second message and an attached file thereof, thedata caller 254 may extract the index associated with the attached fileincluded in the second message and call the attached file by using theindex corresponding to the attached file included in the second messagefrom the message server 100. As for the contents of the second message,when the data caller 254 fails to receive the contents of the secondmessage, the first user terminal 201 may call the contents of the secondmessage by using the index corresponding to the second message. The datacaller 254 may call one or more items included in the second message byusing the index.

The decryptor 256 may decrypt the received index, the contents of thesecond message, the attached file, and the like, by using the decryptionkey.

A configuration related to a method of using a message transmission andreception service by using a plurality of terminals carried or possessedby the same user (e.g.; the first user terminal 201 and the second userterminal 202) is described next.

The authentication manager 258 may perform authentication on the seconduser terminal 202 such that the user who transmits and receives messagesthrough the first user terminal 201 shares a transmission and receptionhistory of the first user terminal 201 with the second user terminal202.

As illustrated in FIG. 6, the authentication manager 258 may include anauthentication key receiver 2581, an authentication key processor 2582,an encryptor 2583, and a key transmitter 2584.

First, the user may need to complete a login procedure through a messagetransmission and reception application so as to transmit and receivemessages by using the second user terminal 202 (e.g., the second userterminal being another user terminal held by a user of the first userterminal 201). When a user ID and a password are identical to userinformation of the first user terminal 201 in the login procedure, themessage server 100 may transmit and receive messages through the firstuser terminal 201 and the second user terminal 202.

When messages are transmitted and received through the first userterminal 201; the authentication key receiver 2581 of the second userterminal 202, which is different from the first user terminal 201, mayreceive a first authentication key for message sharing and messagetransmission and reception, from the message server 100.

The second user terminal 202 may include the authentication keyprocessor 2582, which is configured to input the received authenticationkey. The authentication key processor 2582 may input the authenticationkey received through the first user terminal 201. Further, theauthentication key processor 2582 may transmit a second authenticationkey to the message server 100. The authentication key processor 2582 mayreceive a result of determination of whether the second authenticationkey is valid, in response to the transmission of the secondauthentication key. When the first authentication key is identical tothe second authentication key, the authentication key processor 2582 mayreceive a message indicating that authentication has been completed.Therefore, the second user terminal 202 may share with, for example, thefirst user terminal 201 one or more messages transmitted to and receivedthrough the first user terminal 201.

Also, the authentication key processor 2582 may receive an encryptionkey or a decryption key from the first user terminal 201 by using theauthentication key. When message transmission and reception becomepossible through the authentication, the authentication key processor2582 may enable decryption and encryption of a message by performingcontrol to share the encryption key or the decryption key. In this case,the encryption key or the decryption key may be encrypted by using theauthentication key and may be transmitted from the first user terminal201 to the second user terminal 202.

The encryptor 2583 may encrypt a message by using the authentication keyreceived through the authentication key processor 2582.

Therefore, the user may transmit and receive messages by using thesecond user terminal 202 as well as the first user terminal 201, and mayread the messages, which are transmitted and received by the first userterminal 201, through the second user terminal 202.

As such, an attached file may be encrypted according to recipients, andresources desired to individually store encrypted data may be saved.Because only index information for accessing an attached file having alarge size is transferred between a sender and recipients rather thantransferring the attached file itself, a storage space and/orcommunication capacity required for transferring the attached file maybe reduced, and the attached file may be transferred by using suchreduced storage space and/or such reduced communication capacity. Bytransferring an encrypted index corresponding to an attached fileincluded in a message transmitted to a lot of recipients, instead ofencrypting the attached file according to the recipients, a storagespace and/or communication capacity required for transferring theattached file may be reduced, and the attached file may be transferredby using such reduced storage space and/or such reduced communicationcapacity.

FIGS. 7 and 8 are flowcharts of methods of transmitting and receivingmessages, according to example embodiments.

Referring to FIG. 7, the method of transmitting and receiving messagesaccording to the present example embodiment may include a message inputoperation S110, a key generation operation S120, an encryption operationS130, and a transmission operation S140.

In operation S110, the first user terminal 201 may input a firstmessage. The first user terminal 201 may perform control such that thefirst message is generated according to an input signal which is inputby the user input device 240. The first user terminal 201 may generatethe first message including, for example, a title, contents, senderinformation, recipient information, and an attached file, of the firstmessage, corresponding to the input signal input by a user.

In operation S120, the first user terminal 201 may generate anencryption key for encrypting the first message. In some exampleembodiments, the first user terminal 201 may generate the encryption key(private key) for encrypting the first message and a decryption key(public key) corresponding to the encryption key.

The first user terminal 201 may generate a key for encrypting contentsof the first message and a key for encrypting an attached file of thefirst message. First, as for an operation of generating the encryptionkey of the attached file, the first user terminal 201 may generate theencryption key of the attached file of the first message by taking intoaccount, for example, a size of the attached file of the message. Forexample, when the size of the attached file of the message is smallerthan a given (or, alternatively, desired or predetermined) thresholdsize, the first user terminal 201 may generate a random value as theencryption key of the attached file, regardless of a type of theattached file. When the size of the attached file of the first messageis larger than the given (or, alternatively, desired or predetermined)threshold size, the first user terminal 201 may generate a hash value ofthe attached file as the encryption key of the attached file.

The first user terminal 201 may generate the encryption key of theattached file of the first message by taking into account a type of theattached file of the message. When the attached file of the firstmessage is a video file, the first user terminal 201 may generate a hashvalue of the attached file as the encryption key of the attached file.When the attached file of the first message is a voice file or an imagefile, the first user terminal 201 may generate a random value as theencryption key of the attached file regardless of the attached file.

Next, as for an operation of generating the encryption key forencrypting contents of the first message, the first user terminal 201may generate the encryption key for encrypting the contents of the firstmessage in a random manner. In this case, the encryption key may begenerated in a random manner by taking into account, for example, therecipient information, the sender information, a sending time, and/or asending date.

In another example embodiment, in the case that the first messagegenerated by the first user terminal 201 is to be transmitted to aplurality of recipients, the first user terminal 201 may generatedifferent encryption keys for the respective recipients. In the case ofthe first message to be transmitted to the third user terminal 301 andthe fourth user terminal 302, the first user terminal 201 may generate afirst encryption key used to transmit the first message to the thirduser terminal 301 and a second encryption key used to transmit the firstmessage to the fourth user terminal 302.

In operation S130, the first user terminal 201 may encrypt the contentsand an attached file of the first message by using the encryption keysgenerated by the key generator 257. The first user terminal 201 mayencrypt the contents and the attached file of the first message by usingone or more encryption keys (or cryptographic keys). The first userterminal 201 may encrypt the first message desired to be transmitted toa plurality of users by using the encryption keys generated for therespective users.

In operation S140, the first user terminal 201 may transmit theencrypted first message to the message server 100 so as to transmit theencrypted first message to the second user terminal (e.g., a recipientof the first message). Further, the first user terminal 201 may encryptand transmit the encryption keys used to encrypt the first message byusing another encryption key.

Referring to FIG. 8, the method of transmitting and receiving messagesaccording to the present example embodiment may include a messagereception operation S210, a message calling operation S220, and amessage decryption operation S230.

In operation S210, the first user terminal 201 may receive a secondmessage or an index corresponding to the second message, which istransmitted by the user terminal 300 via the message server 100. Thefirst user terminal 201 may receive a decryption key for decrypting thesecond message, along with the second message or the index correspondingto the second message.

In operation S220, if a message is transmitted and received as it is(without being encrypted), calling of data is not needed. In the case oftransmitting and receiving indexes corresponding to the second messageand an attached file thereof, however, the first user terminal 201 maycall the attached file by using the index corresponding to the attachedfile included in the second message. As for the contents of the secondmessage, when the first user terminal 201 fails to receive the contentsof the second message, the first user terminal 201 may call the contentsof the second message by using the index corresponding to the secondmessage. The first user terminal 201 may call one or more items includedin the second message by using the index.

In operation S230, the first user terminal 201 may decrypt the receivedindex, the contents and the attached file of the second message, and thelike, by using the decryption key. When the first user terminal 201fails to perform decryption, the first user terminal 201 may display ascreen including contents requesting security for the second message. Inorder to obtain the decryption key, the first user terminal 201 mayadditionally receive an encryption key, and at this time, the encryptionkey used to encrypt the second message or the attached file may beencrypted by using another encryption key that is pre-received orpre-stored. In other words, the first user terminal 201 may obtain theencryption key by decrypting the encryption key.

FIG. 9 is a flowchart of an example embodiment of a method oftransmitting and receiving messages between a user terminal 200 and auser terminal 300.

In operation S901, the user terminal 200 (e.g., first user terminal 201)may generate an encryption key for encrypting an input message andgenerate a decryption key corresponding to the encryption key. Becauserelationship between the encryption key and the decryption key has beendescribed above, a detailed description thereof will be omitted. Theencryption key may be respectively generated to encrypt contents and anattached file of the message.

In operation S902, the user terminal 200 may receive a user input forgenerating the message including the attached file.

In operation S903, the user terminal 200 may encrypt the attached fileand the contents of the message by using the encryption key.

In operation S904 and S905, the user terminal 200 may transmit thedecryption key and the encrypted file and message to the message server100. In this case, a plurality of decryption keys may be generatedrespectively for the message and the attached file included in themessage.

In operations S906 and S907, the user terminal 300 may receive thedecryption key and the encrypted file and message from the messageserver 100.

In operation S908, after receiving the decryption key and the encryptedfile and message, the user terminal 300 may decrypt the message and theattached file included in the message by using the decryption key.

FIG. 10 is a flowchart of an example embodiment of a method of sharing amessage between a first user terminal and a second user terminal.

In operation S1001, a user carrying or possessing both the first userterminal 201 and the second user terminal 202 may input logininformation for message transmission and reception through the seconduser terminal 202.

In operation S1002, the second user terminal 202 may transmit the logininformation to the message server 100.

In operation S1003, the message server 100 may determine whether thelogin information is valid. That is, for example, the message server 100may determine whether ID information and password information includedin the login information are associated with each other.

In operation S1004, the message server 100 may determine whether an IDand a password of a first user are associated. When the logininformation is valid, the message server 100 may transmit a firstauthentication number generated in a random manner to the second userterminal 202. Thereafter, a signal requesting the user to input theauthentication number may be transmitted to the first user terminal 201,which is also carried or possessed by the user.

In operation S1005, the first user terminal 201 may display a userinterface requesting input of the authentication number in response tothe signal.

In operation S1006, the first user terminal 201 may receive a secondauthentication number through the user interface.

In operation S1007, the first user terminal 201 may transmit the inputsecond authentication number to the message server 100.

In operation S1008, the message server 100 may determine whether thefirst authentication number is identical to the second authenticationnumber.

In operation S1009, when the first authentication number is identical tothe second authentication number, the message server 100 may endauthentication of the second user terminal 202.

After operations S1001 to operation S1009, the message server 100 maytransfer messages received or transmitted by the first user terminal 102to the second user terminal 202. Similarly, the message server 100 maytransfer the messages received or transmitted by the second userterminal 202 to the first user terminal 201. That is, for example, thefirst user terminal 201 and the second user terminal 202 may share thesame message transmission and reception history with each other.

In some example embodiments, information indicating whether each messageis read may be different between the first user terminal 201 and thesecond user terminal 202. For example, the message which is read on thefirst user terminal 201 may be displayed as being an unread message onthe second user terminal 202.

FIGS. 11 to 14 are diagrams illustrating examples of a user interfaceprovided by a user terminal, according to some example embodiments.

In FIG. 11, reference numeral 1101 may represent a user interfacedisplayed on the first user terminal 201, which is a screen requestinginput of an authentication number transmitted to the second userterminal 202. As illustrated in FIG. 11, when the user inputs theauthentication number that is a six-digit number and clicks an identityconfirmation button 1102, the first user terminal 201 may performauthentication.

In FIG. 12, reference numeral 1201 may represent a user interface fordisplaying a message on the user terminal 200 or 300. The user terminal200 or 300, which has not completed the identity confirmation, maydisplay a message in an encrypted state (1202) and the user may need toseparately perform the identity confirmation by clicking a button 1203for the identity confirmation.

In FIG. 13, reference numeral 1301 may display both a screen displayinga list of one or more chat rooms created by the user and a screendisplaying conversations in each of the chat rooms. When a counterparttransmits a message 1302, which needs an additional security procedure,the message may not be displayed even with respect to the user who hascompleted identify confirmation. Therefore, the user terminal 200 or 300may perform control to request the user to complete the additionalauthentication procedure so as to read contents of the message (S1303).

As illustrated in FIG. 14, reference numeral 1401 may display a list ofchat rooms, and an encrypted message is not displayed in the list ofchat rooms (1402).

FIGS. 15A and 15B are diagrams for describing encryption processes indetail according to some example embodiments.

Referring to FIG. 15A, a first user terminal 200 of a sender receives arequest to transmit a file from the sender, in operation S1500. When atype of the file is an image or a size of the file is smaller than athreshold size, a message application installed in the first userterminal 200 generates a random first encryption key SRK for encryptingthe file in operation S1501. The first user terminal 200 generates anencrypted file EF by encrypting the file using the first encryption keySRK in operation S1502, and generates an encrypted key EK by encryptingthe first encryption key SRK using a second encryption key AK sharedwith a sender for message transmission and reception in operation 1503.In other words, in methods of transmitting and receiving messages,according to one or more example embodiments, in order to mitigate orprevent the first encryption key SRK generated to encrypt the file fromleaking (e.g., being hacked). The first encryption key SRK may beencrypted by another encryption key, for example, the second encryptionkey AK, for message transmission and reception. The first user terminal200 transmits the encrypted file EF to the message server 100 inoperation S1504, and transmits the encrypted key EK to the messageserver 100 in operation S1505. The message server 100 transmits theencrypted file EF and the encrypted key EK intactly to the second userterminal 300 respectively in operations S1506 and S1507. The second userterminal 300 of a recipient receives the encrypted file EF and theencrypted key EK through a message application installed therein. Beforedecrypting the encrypted file EF, the second user terminal 300 decryptsthe encrypted key EK by using the second encryption key AK to obtain thefirst encryption key SRK in operation S1508. The second user terminal300 decrypts the encrypted file EF by using the first encryption key SRKto generate the original file transmitted by then sender in operationS1509.

As shown in FIG. 15B, when the type of the file to be transmitted by thefirst user terminal 200 of the sender is a video or the size of the fileis larger than the threshold size, a hash value FH of the file may beused as an encryption key.

The first user terminal 200 receives an input of file transmission fromthe sender in operation 1510, and calculates the hash value FH of thefile in operation S1511. The first user terminal 200 generates theencrypted file EF by encrypting the file by using the hash value FH ofthe file, in operation S1512. The first user terminal 200 generates theencrypted key EK by encrypting the hash value FH using the secondencryption key AK shared with the recipient in operation S1513. Thefirst user terminal 200 transmits the encrypted file EF and theencrypted key EK to the message server 100 respectively in operationsS1514 and S1515, and the message server 100 transmits the encrypted fileEF and the encrypted key EK to the second user terminal 300 respectivelyin operations S1516 and S1517. The second user terminal 300 outputs thehash value FH by decrypting the encrypted key EK using the secondencryption key AK before decrypting the file in operation S1518, andoutputs the original file by decrypting the encrypted file EF using thehash value FH in operation S1519.

As discussed similarly above, the example embodiments set forth hereinmay be embodied as a computer program that is executable on a computerby various elements, and the computer program may be implemented by anon-transitory computer-readable medium. Examples of the non-transitorycomputer-readable medium may include magnetic media (e.g., a hard disk,a floppy disk, a magnetic tape, etc.), optical media (e.g., compactdisc-read-only memory (CD-ROM), digital versatile disk (DVD), etc.),magneto-optical media (e.g., a floptical disk, etc.), and a hardwaredevice specially configured to store and execute program instructions(e.g., ROM, random access memory (RAM), flash memory, etc.). Thenon-transitory computer-readable medium may include an intangible mediumthat is implemented to be transmittable on a network. For example, thenon-transitory computer-readable medium may be implemented by softwareor applications that are transmittable and distributable via a network.

The computer program may be specifically designed and configured for thedisclosure, or may be well known to and usable by those of ordinaryskill in the field of computer software. Examples of the computerprogram may include not only machine language codes prepared by acompiler but also high-level codes executable by a computer by using aninterpreter.

The particular implementations shown and described herein areillustrative examples of the disclosure and are not intended tootherwise limit the scope of the disclosure in any way. For the sake ofbrevity, conventional electronics, control systems, software, and otherfunctional aspects of the systems may not be described in detail.Furthermore, the connecting lines or connecting members shown in thevarious figures are intended to represent example functionalrelationships and/or physical or logical connections between the variouselements. It should be noted that many alternative or additionalfunctional relationships, physical connections or logical connectionsmay be present. Moreover, no component is essential to the practice ofthe example embodiments unless the element is specifically described as“essential” or “critical”.

Recitation of ranges of values herein are merely intended to serve as ashorthand method of referring individually to each separate valuefalling within the range, unless otherwise indicated herein, and eachseparate value is incorporated into the specification as if it wereindividually recited herein. Finally, the steps of all methods describedherein can be performed in any suitable order unless otherwise indicatedherein or otherwise clearly contradicted by context. The use of any andall examples, or exemplary language (e.g., “such as”) provided herein,is intended merely to better illuminate the disclosure and does not posea limitation on the scope of the disclosure unless otherwise claimed.Numerous modifications and adaptations will be readily apparent to thoseof ordinary skill in this art without departing from the spirit andscope of the disclosure.

It should be understood that the example embodiments described hereinshould be considered in a descriptive sense only and not for purposes oflimitation. Descriptions of features or aspects of each exampleembodiment should typically be considered as available for other similarfeatures or aspects in other example embodiments.

While one or more example embodiments have been described with referenceto the figures, it will be understood by those of ordinary skill in theart that various changes in form and details may be made therein withoutdeparting from the spirit and scope of the inventive concept as definedby the following claims.

What is claimed is:
 1. A non-transitory computer-readable recordingmedium storing computer-readable instructions that, when executed by afirst user terminal, cause the first user terminal to perform a methodcomprising: receiving a first message including a first attached file;generating, based on a type of the first attached file, at least oneencryption key for encrypting the first message; encrypting the firstattached file using the at least one encryption key; adding senderinformation to the first message, the sender information associated withthe first message; and transmitting the first message including thesender information to a message server.
 2. The non-transitorycomputer-readable recording medium of claim 1, wherein the generating atleast one encryption key comprises: generating a hash value of the firstattached file as the at east one encryption key of the first attachedfile.
 3. The non-transitory computer-readable recording medium of claim1, wherein the first attached file is a video file; and the generatingat least one encryption key includes generating a hash value of thefirst attached file as the encryption key of the first attached file. 4.The non-transitory computer-readable recording medium of claim 1,wherein the generating at least one encryption key comprises: generatinga plurality of encryption keys for a plurality of second user terminalsfor transmitting the first message to the plurality of second userterminals.
 5. The non-transitory computer-readable recording medium ofclaim 1, wherein the method further comprises: receiving a secondmessage and an index associated with a second attached file, the secondmessage transmitted by a second user terminal via the message server;extracting the index; calling the second attached file from the messageserver using the index; and decrypting the second attached file using adecryption key received from the second user terminal.
 6. Thenon-transitory computer-readable recording medium of claim 1, whereinthe method further comprises: inputting an authentication key, theauthentication key transmitted from a second user terminal, to read thefirst message through the second user terminal.
 7. The non-transitorycomputer-readable recording medium of claim 6, wherein the inputting anauthentication key comprises: transmitting the authentication key fromthe second user terminal to the message server; receiving a validationresult with regard to the authentication key in response to thetransmitted authentication key; and transmitting the first message andthe second message to the second user terminal according to thevalidation result.
 8. The non-transitory computer-readable recordingmedium of claim 6, wherein the inputting the authentication keycomprises: encrypting the first and second messages using theauthentication key; and transmitting the encrypted first and secondmessages to the second user terminal.
 9. A user terminal comprising: amemory storing computer-readable instructions; and at least oneprocessor configured to execute the computer-readable instructions suchthat the at least one processor is configured to receive a first messageincluding a first attached file, the first message including senderinformation, generate, based on a type of the first attached file, anencryption key for encrypting the first message, and encrypt the firstattached file of the first message using the encryption key; and atransceiver configured to transmit the first message to a messageserver.
 10. The user terminal of claim 9, wherein, when a size of thefirst attached file is greater than or equal to a threshold value, theat least one processor is configured to execute the computer-readableinstructions such that the at least one processor is further configuredto generate a hash value of the first attached file as the encryptionkey of the first attached file.
 11. The user terminal of claim 9,wherein the first attached file is a video file; and the at least oneprocessor is configured to execute the computer-readable instructionssuch that the at least one processor is further configured to generate ahash value of the first attached file as the encryption key of the firstattached file.
 12. The user terminal of claim 9, wherein the at leastone processor is configured to execute the computer-readableinstructions such that the at least one processor is further configuredto generate a plurality of encryption keys for a plurality of other userterminals for transmitting the first message to the plurality of otheruser terminals.
 13. The user terminal of claim 9, wherein the at leastone processor is configured to execute the computer-readableinstructions such that the at least one processor is further configuredto receive a second message and an index associated with a secondattached file, the second message received from a second user terminalvia the message server; extract an index; call the second attached filefrom the message server using the index; and decrypt the second attachedfile using a decryption key received from the second user terminal. 14.The user terminal of claim 9, wherein the at least one processor isconfigured to execute the computer-readable instructions such that theat least one processor is further configured to receive anauthentication key from a second user terminal to read the first messagethrough the second user terminal.
 15. The user terminal of claim 14,wherein the transceiver is further configured to transmit theauthentication key to the message server; receive a validation resultwith regard to the authentication key in response to the transmittedauthentication key; and selectively transmit the first message and thesecond message to the second user terminal based on the validationresult.
 16. The user terminal of claim 14, wherein the at least oneprocessor is further configured to execute the computer-readableinstructions such that the at least one processor is further configuredto encrypt the first and second messages using the authentication key;and the transceiver is further configured to transmit the encryptedfirst and second messages to the second user terminal.